<?php

namespace app\admin\model;

use app\admin\traits\ScopeUniacid;
use app\common\model\TimeModel;

class KnscyPages extends TimeModel
{

    protected $name = "pages";

    protected $globalScope = ['uniacid'];
    use ScopeUniacid;

    const biwanxiangmu  = 4;

    public function getCategoryList()
    {
        $data = [
            [
                'id' => 0, 'title' => '自定义单页'
            ],
            [
                'id' => 1, 'title' => '运营时间'
            ],
            [
                'id' => 2, 'title' => '演出时间'
            ],
            [
                'id' => 3, 'title' => '游玩须知'
            ],
            [
                'id' => 4, 'title' => '必玩项目'
            ],
            [
                'id' => 5, 'title' => '游玩地图'
            ],
            [
                'id' => 6, 'title' => '景区介绍'
            ],
            [
                'id' => 7, 'title' => '注册隐私条款'
            ],
            [
                'id' => 8, 'title' => '停车缴费'
            ]
        ];
        return $data;
    }

    public function getStatusList()
    {
        return ['0'=>'禁用','1'=>'启用',];
    }

    public function getContentAttr($value)
    {
        return htmlspecialchars_decode($value);
    }


}